package com.zhj.springbootorderrabbitmqconsumer.service.direct;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

/**
 * @author zhj
 */
@Service
@RabbitListener(queues = "ttl.direct.queue")
public class DirectTTLService {
    @RabbitHandler
    public void receiveMessage(String message) {
        System.out.println("短信接收到订单信息：" + message);
    }
}
